// pages/web/collegedetails/collegedetails.js
var WxParse = require("../../../wxParse/wxParse.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    article_detail:{}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (t) {
    getApp().page.onLoad(this, t);
    this.supershop_article_detail(t.id)
  },
  supershop_article_detail: function (e) {
    var o = this
    getApp().request({
      url: getApp().api.default.supershop_article_detail,
      data: {
        id: e
      },
      success: function (t) {
        console.log(t)
        if (0 == t.code) {
          var a = t.data.content;
          WxParse.wxParse("detail", "html", a, o), getApp().core.setNavigationBarTitle({
            title: t.data.title
          });
          o.setData({
            article_detail: t.data
          })
        }
      },
    })
  }
})